package com.dkm.ec.activity.persistence.entity;


import com.dkm.base.db.persistence.entity.AbstractPo;
import com.dkm.ec.stock.persistence.entity.StockPo;

/**
 * 秒杀活动参与明细表管理Entity
 * @author fjy
 * @version 2017-08-14
 */
public class SecSkillActivitySkuPo extends AbstractPo<String> {
	
	private static final long serialVersionUID = 1L;
	private String id; //主键
	private String partinid;		// 引sec_kill_activity_partin 表主键
	private String stockid;		// 库存id, 引t_stock表的主键
	private Integer partinnum;		// 参与活动的数量
	private Integer availableNum; // 可用数量，创建的时候这个字段值等于partinNum，用户每次购买就减这个字段的值
	private String isReturnStock; // 0: 没有归还总库存，1: 已经归还总库存

	private StockPo stockPo; // 库存
	
	public SecSkillActivitySkuPo() {
		super();
	}

	public SecSkillActivitySkuPo(String id){
		this.id = id;
	}

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	public String getPartinid() {
		return partinid;
	}

	public void setPartinid(String partinid) {
		this.partinid = partinid;
	}

	public String getStockid() {
		return stockid;
	}

	public void setStockid(String stockid) {
		this.stockid = stockid;
	}

	public Integer getPartinnum() {
		return partinnum;
	}

	public void setPartinnum(Integer partinnum) {
		this.partinnum = partinnum;
	}

	public StockPo getStockPo() {
		return stockPo;
	}

	public void setStockPo(StockPo stockPo) {
		this.stockPo = stockPo;
	}

	public Integer getAvailableNum() {
		return availableNum;
	}

	public void setAvailableNum(Integer availableNum) {
		this.availableNum = availableNum;
	}

	public String getIsReturnStock() {
		return isReturnStock;
	}

	public void setIsReturnStock(String isReturnStock) {
		this.isReturnStock = isReturnStock;
	}
}